b19b1f395edf54dd0d0c45792615123584f21477,trunk/JLanguageTool/src/main/java/org/languagetool/rules/ca/ComplexAdjectiveConcordanceRule.java,ComplexAdjectiveConcordanceRule,match,#AnalyzedSentence#,117
Before Change
Matcher pCoordina = COORDINACIO.matcher(nextToken);
if (pCoordina.matches()) {
if ( ((matchPostagRegexp(tokens[i-1],NOM_MP) || matchPostagRegexp(tokens[i-1],ADJECTIU_MP)) && matchPostagRegexp(tokens[i],ADJECTIU_M) && matchPostagRegexp(tokens[i+2],ADJECTIU_M))
|| ((matchPostagRegexp(tokens[i-1],NOM_FP) || matchPostagRegexp(tokens[i-1],ADJECTIU_FP)) && matchPostagRegexp(tokens[i],ADJECTIU_F) && matchPostagRegexp(tokens[i+2],ADJECTIU_F)) )
{
isException=true;}
}
After Change
Matcher pCoordina = COORDINACIO.matcher(nextToken);
if (pCoordina.matches()) {
if ( ((matchPostagRegexp(tokens[i-1],NOM_MP) || matchPostagRegexp(tokens[i-1],ADJECTIU_MP)) && matchPostagRegexp(tokens[i],ADJECTIU_MS) && matchPostagRegexp(tokens[i+2],ADJECTIU_MS))
|| ((matchPostagRegexp(tokens[i-1],NOM_MP) || matchPostagRegexp(tokens[i-1],ADJECTIU_MP)) && matchPostagRegexp(tokens[i],ADJECTIU_MP) && matchPostagRegexp(tokens[i+2],ADJECTIU_MP))
|| ((matchPostagRegexp(tokens[i-1],NOM_FP) || matchPostagRegexp(tokens[i-1],ADJECTIU_FP)) && matchPostagRegexp(tokens[i],ADJECTIU_FS) && matchPostagRegexp(tokens[i+2],ADJECTIU_FS))
|| ((matchPostagRegexp(tokens[i-1],NOM_FP) || matchPostagRegexp(tokens[i-1],ADJECTIU_FP)) && matchPostagRegexp(tokens[i],ADJECTIU_FP) && matchPostagRegexp(tokens[i+2],ADJECTIU_FP)))
{